package day0529;

public class F4 {
    public static void main(String[] args) {
        int age=3;
        System.out.println( age+2 );

        //double数据有时不精确(  1/10 是不能精确表示的)
        double d1=3.0;
        double d2=2.9;
        System.out.println(d1-d2);

        System.out.println(5*6);
        //浮点数和整数运算  结果是浮点数
        System.out.println(age*d1);//9.0

        //整数和整数运算，结果只能是整数
        System.out.println(3/2);//1   ctrl   d
        System.out.println(3.0/2);//1.5
        System.out.println(3.0/2.0);//1.5

        System.out.println(5%3);//2
        System.out.println(25%5);//0
        System.out.println(8%4);//0

    }
}




